<!--{include(pe_tpl('header_dialog.html'));}-->
<form method="post" id="form" autocomplete="off">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang_border">
<tr>
	<td class="bgtt" width="150">评价日期：</td>
	<td><input type="text" name="comment_atime" value="{pe_date(time())}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate inputall input150" /></td>
</tr>
<tr>
	<td class="bgtt">评价用户：</td>
	<td><input type="text" name="user_name" class="inputall input150" /></td>
</tr>
<tr>
	<td class="bgtt">用户头像：</td>
	<td id="user_logo_box">
		<div class="upload_box" style="width:80px; height:80px;">
			<img src="{pe_thumb($info['user_logo'])}" class="upload_img" />
			<input type="hidden" name="user_logo" value="{$info['user_logo']}" class="upload_val">
		</div>
	</td>
</tr>
<tr>
	<td class="bgtt">评价内容：</td>
	<td>
		<textarea name="comment_text" style="width:640px;height:100px"></textarea>
	</td>
</tr>
<tr>
	<td class="bgtt">评价晒图：</td>
	<td id="album_box">
		<!--{foreach(array(0,1,2,3,4) as $k=>$v):}-->
		<div class="upload_box fl mar10" style="width:100px;height:100px">
			<img src="{pe_thumb($comment_logo[$k])}" class="upload_img" />
			<input type="hidden" name="comment_logo[]" value="{$comment_logo[$k]}" class="upload_val">
		</div>
		<!--{endforeach;}-->
	</td>
</tr>
<tr>
	<td class="bgtt">综合评分：</td>
	<td>
		<input type="hidden" name="comment_star" value="5" />
		<span id="star" class="fl"></span>
		<span id="comment_star_show" class="fl mal10 corg"></span>
		<div class="clear"></div>
	</td>
</tr>
</table>
<div style="height:60px"></div>
<div class="right_bottom center">
	<input type="hidden" name="pe_token" value="{$pe_token}" />
	<input type="hidden" name="pesubmit" value="{$pe_token}" />
	<input type="button" value="提 交" class="tjbtn">
</div>
</form>
<script type="text/javascript" src="{$pe['host']}include/plugin/raty/jquery.raty.js"></script>
<script type="text/javascript" src="{$pe['host']}include/plugin/my97/WdatePicker.js"></script>
<link rel="stylesheet" href="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/style.css">
<script src="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/plupload.min.js"></script>
<script src="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/upload.js"></script>
<script type="text/javascript">
$(function() {
	$('#star').raty({
		path:"{$pe['host']}include/plugin/raty/images",
		hints: ['很差', '较差', '一般', '满意', '很满意'],
		score: 5,
		target: "#comment_star_show",
		targetKeep: true,
		click: function (score, evt) {
			$(":input[name='comment_star']").val(score);
		}
	});
	$("#user_logo_box").pe_upload();
	$("#album_box").pe_upload();
	$(":button").click(function(){
		pe_submit("{pe_nowurl()}", function(json){
			if (json.code == 1) pe_open('dialog', 500);
		});
	})
})
</script>
<!--{include(pe_tpl('footer_dialog.html'));}-->